package pers.qianyu.module.core.domain.system.converter;

import org.springframework.stereotype.Component;
import pers.qianyu.module.core.comm.BaseConverter;
import pers.qianyu.module.core.domain.system.entity.SysResourcePO;
import pers.qianyu.module.core.domain.system.vo.SysResourceVO;

/**
 * @author mizzle rain
 * @date 2021-05-03 22:13
 */
@Component
public class SysResourceConverter extends BaseConverter {
    public SysResourceVO convertToVO(SysResourcePO sysResourcePO) {
        SysResourceVO sysResourceVO = new SysResourceVO();
        sysResourceVO.setSignature(sysResourcePO.getSignature());
        sysResourceVO.setRemark(sysResourcePO.getRemark());
        sysResourceVO.setUri(sysResourcePO.getUri());
        sysResourceVO.setMethod(sysResourcePO.getMethod());
        sysResourceVO.setStatus(sysResourcePO.getStatus());
        entityToVO(sysResourcePO, sysResourceVO);
        return sysResourceVO;
    }
}
